package cn.funeralobjects.upms.api;

import cn.funeralobjects.common.web.api.CommonCloudCrudRestApi;
import cn.funeralobjects.upm.web.model.MCustomPath;
import cn.funeralobjects.upm.web.model.VCustomPath;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import reactor.core.publisher.Mono;

/**
 * @author FuneralObjects
 * Create date: 2020/5/27 6:58 PM
 */
public interface CustomPathApi extends CommonCloudCrudRestApi<VCustomPath, MCustomPath, Integer> {

    /**
     * 移除角色关联关系
     *
     * @param id     id
     * @param roleId 角色id
     * @return 无返回
     */
    @DeleteMapping("/{id}/relation-role-{roleId}")
    Mono<Void> removeRoleFromCustomPath(@PathVariable Integer id, @PathVariable Integer roleId);

}
